package com.quiz.bis.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class InviteCreateBo {
    @NotNull
    private Long groupId;

    @NotNull
    @Min(1) @Max(2)
    private Integer type; // 1-负责人 2-考生

    @Min(1) @Max(100)
    private Integer maxUses = 10; // 默认10次

    @Future
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime; // 可选过期时间
}
